package com.indexingsystem.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.indexingsystem.boss.admin.mapper.DhApiRoleMapper;
import com.indexingsystem.boss.entity.DhApiRole;
import com.indexingsystem.system.service.DhApiRoleService;
@Service
public class DhApiRoleServiceImpl  implements  DhApiRoleService{

	@Autowired
	private DhApiRoleMapper dhApiRoleMapper;
	@Override
	public int deleteByPrimaryKey(Integer relationsId) {
		// TODO Auto-generated method stub
		return dhApiRoleMapper.deleteByPrimaryKey(relationsId);
	}

	@Override
	public int insert(DhApiRole record) {
		// TODO Auto-generated method stub
		return dhApiRoleMapper.insert(record);
	}

	@Override
	public int insertSelective(DhApiRole record) {
		// TODO Auto-generated method stub
		return dhApiRoleMapper.insertSelective(record);
	}

	@Override
	public DhApiRole selectByPrimaryKey(Integer relationsId) {
		// TODO Auto-generated method stub
		return dhApiRoleMapper.selectByPrimaryKey(relationsId);
	}

	@Override
	public int updateByPrimaryKeySelective(DhApiRole record) {
		// TODO Auto-generated method stub
		return dhApiRoleMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(DhApiRole record) {
		// TODO Auto-generated method stub
		return dhApiRoleMapper.updateByPrimaryKey(record);
	}

	
	
	/*
	 *     获取启用验证token的URL
	 * */
	@Override
	public List<DhApiRole> selectEndableRoleApi() {
		// TODO Auto-generated method stub
		return dhApiRoleMapper.selectEndableRoleApi( ) ;
	}

}
